package cn.dust.design.principle.openclose;

/**
 * @Author: dust
 * @Date: 2019/11/24 18:27
 */
public class Test {

    public static void main(String[] args) {
        ICourse javaCource= new JavaDiscountCource(1,"javaC",348d);
        JavaDiscountCource javaDiscountCource=(JavaDiscountCource)javaCource;
        System.out.println(javaDiscountCource.getOrigenPrice()+" "+javaDiscountCource.getPrice());

    }
}
